package com.vae.easternzhejiangbasin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author luzhiheng
 */
@MapperScan(basePackages = "com.vae.easternzhejiangbasin.mapper")
@SpringBootApplication
public class EasternZJBasinApplication {

    public static void main(String[] args) {
        SpringApplication.run(EasternZJBasinApplication.class, args);
    }

//    //下面是2.0的配置，1.x请搜索对应的设置
//    @Bean
//    public ServletWebServerFactory servletContainer() {
//        TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory();
//        tomcat.addAdditionalTomcatConnectors(createHTTPConnector());
//        return tomcat;
//    }
//
//    private Connector createHTTPConnector() {
//        Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
//        //同时启用http（9905）、https（9906）两个端口
//        connector.setScheme("http");
//        connector.setSecure(false);
//        connector.setPort(9908);
//        connector.setRedirectPort(9907);
//        return connector;
//    }
}
